<div id="sidebar">
    <div id="search" class="widget">
        <ul>
            <li style="margin-top:0px;">
                <form id="searchform" action="${siteurl}search.aspx" method="get" >
                     <div>
                        <input type="text" id="keyword" name="keyword"  size="13" value="${searchkeyword}" />
                        <input type="image" src="${themepath}images/lens.png"  style="margin:0 0 -5px 3px;"  title="搜索"/>
                    </div>
                </form>
            </li>
        </ul>
    </div>
    <ul>       
        <li id="authors" class="widget">
            <h3>作者</h3>
            <ul>
            #foreach($item in $authors)
                <li><a href="${item.url}"  title="${item.description}">${item.name}</a><span>(${item.postcount})</span></li>
            #end
            </ul>
        </li>
        
        <li id="categories" class="widget">
            <h3>分类</h3>
            <ul>
            #foreach($item in $categories)
                <li><a href="${item.url}" title="${item.description}">${item.name}</a><span>(${item.count})</span></li>
            #end
            </ul>
        </li>
        <li id="recentposts" class="widget">
            <h3>最新日志</h3>
            <ul>
            #foreach($item in ${recentposts})
                <li><a href="${item.url}" title="${item.title}">${item.title}</a></li>
            #end
            </ul>
        </li>
        <li id="recentcomments" class="widget">
            <h3>最新评论</h3>
            <ul>
            #foreach($item in $recentcomments)
                <li><a href="${item.url}" title="${item.name} 发表于 ${item.createdate}">${item.title}</a></li>
            #end
            </ul>
        </li>
        <li id="monthlist" class="widget">
            <h3>归档</h3>
            <ul>
            #foreach($item in $archives)
                <li><a href="${item.url}" title="">${item.date.tostring("yyyy年MM月")}</a><span>(${item.count})</span></li>
            #end
            </ul>
        </li>
        <li id="recenttags" class="widget">
            <h3>标签</h3>
            <ul>
            #foreach($item in $recenttags)
                <li><a href="${item.url}" title="${item.description}">${item.name}</a><span>(${item.count})</span></li>
            #end
            </ul>
        </li>
        <li id="generallinks" class="widget">
            <h3>链接</h3>
            <ul>
            #foreach($item in $generallinks)
                <li><a href="${item.url}" title="${item.description}" target="${item.target}">${item.name}</a></li>
            #end
            </ul>
        </li>
        <li  id="statistics" class="widget">
            <h3>统计</h3>
            <ul>
                <li>文章:<span>${postcount} 篇</span></li>
                <li>评论:<span>${commentcount} 条</span></li>
                <li>作者:<span>${authorcount} 位</span></li>
                <li>访问:<span>${viewcount} 次</span></li>
                <li>订阅:<span><a href="${feedurl}">文章</a> <a href="${feedcommenturl}">评论</a> </span></li>
            </ul>
        </li>
    </ul>
</div>
 
